<?php

session_start();



 $username = $_POST["userName"];
 $pwd = $_POST["pwd"]; 
 if($username!=null && $pwd !=null){
 	if($username=="admin" && $pwd == "lgd103ZHY"){
 		$_SESSION["fancylouUserName"] = "admin";
 		//$_SESSION["fancylouPWD"] = "123";
 		
 		header("location:main.php");
 		exit;
 	}
 }
 header("location:login.php?errorId=1");
 ?>